package com.vcc.service.service;

import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;
import com.vcc.data.entity.WhiteLabel;
import com.vcc.service.boss.response.whiteLabel.WhiteLabelVoBoss;

public interface WhiteLabelService extends IService<WhiteLabel> {

    /**
     * 根据域名查询白标信息
     *
     * @param domain 域名
     * @return 白标信息
     */
    WhiteLabel getByDomain(String domain);

    /**
     * 根据用户ID查询白标信息
     *
     * @param bossUserId 用户ID
     * @return 白标信息
     */
    WhiteLabel getByBossUserId(Long bossUserId);


    Boolean existsByDomain(String domain);

    Boolean existsByAdminDomain(String adminDomain);

    WhiteLabel getByAdminDomain(String adminDomain);


    Boolean existsByBossUserId(Long bossUserId);


    Page<WhiteLabelVoBoss> pageing(String name, String domain, Long bossUserId, Integer status, Integer pageNumber, Integer pageSize);

    Boolean audit(Long id, Boolean status, String remark);

    Boolean updateStatus(Long id, Integer status);
}
